<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
	
<script type="text/javascript" src="/cloth-factory-mes/commons/js/jquery.js"></script>
<script type="text/javascript" src="/cloth-factory-mes/commons/js/jquery-ui.js"></script>
<script type="text/javascript">
var body = document.getElementById("body");
$(document).ready(function(){
	<%
	ArrayList list = (ArrayList)session.getAttribute("orderList");
	%>
	alert(list);
	for(var i=0; i<=list.size(); i++){
		var oto = list[i];
		var span = document.createElement("span");
		span.innerHTML = "오더번호 : "+oto.orderId+", 주문량 : "+oto.orderAmount+", 물품명 : "+oto.typeMame+
		", 사이즈 : "+oto.size+", 색상 : "+oto.colorName+", 단추갯수 : "+oto.countButtons+"<br>";
		body.innerHTML = span;
	} 
});
</script>	
</head>
<body id="body">
	
<!-- 
<c:forEach items="${sessionScope.orderList }" var="oto">
	<a href="mesCtr.do?method=machineResult&orderId=${oto.orderId }">
	<div class="div" onmouseover="this.style.backgroundColor='#B2EBF4';" onmouseout="this.style.backgroundColor='#FFFFFF'">
	오더번호 : ${oto.orderId }, 주문량 : ${oto.orderAmount }, 물품아이디 : ${oto.typeId }, 물품명 : ${oto.typeName }, 사이즈 : ${oto.size }, 
	컬러아이디 : ${oto.colorId }, 컬러명 : ${oto.colorName }, 단추개수 : ${oto.countButtons }
	</div></a><br>
</c:forEach>
 -->		
</body>
</html>